﻿#ifndef REMOTE_OBJ_ERROR_H
#define REMOTE_OBJ_ERROR_H
namespace RemoteObj
{
#define RemoteObjGetLastError() ::GetLastError()
#define RemoteObjSockGetLastError() ::WSAGetLastError()
enum
{
    S_REMOTEOBJ_SUCCESS,
    E_REMOTEOBJ_NULL_POINTER,
    E_REMOTEOBJ_CONF_ERROR,
    E_REMOTEOBJ_NOMEM,
    E_REMOTEOBJ_INVALID_PARAM,
    E_REMOTEOBJ_SYSERROR,
    E_REMOTEOBJ_TIMEOUT,
    E_REMOTEOBJ_SERVER_ALREADY_INIT,
    E_REMOTEOBJ_SERVER_INIT_FAILED,
    E_REMOTEOBJ_SERVER_NEED_INIT,
    E_REMOTEOBJ_SERVER_CREATE_LISTENFD_FAILED,
    E_REMOTEOBJ_SERVICE_NOT_FOUND,
    E_REMOTEOBJ_OUT_MAX_TRY_COUNT
};
}

#endif // REMOTE_OBJ_ERROR_H
